# !/usr/bin/python3
# -*- coding: utf-8 -*-

"""
字典数据表模型类
----------------------------------------------------
@Project :   xinhou-openai-framework
@File    :   DictsData.py
@Contact :   sp_hrz@qq.com

@Modify Time      @Author    @Version    @Desciption
------------      -------    --------    -----------
2023/04/16 22:04  peng.shen   v1.0.0     None
"""

from sqlalchemy import ForeignKey
from sqlalchemy import func

from sqlalchemy import Column, Integer, String, Text, Numeric, TIMESTAMP
from xinhou_openai_framework.core.orm.entity.BaseEntity import BaseEntity


class DictsData(BaseEntity):
    # 数据表名&字段
    __tablename__ = 't_dicts_data'

    dict_sort = Column(Integer, default='0', comment="字典排序")
    dict_label = Column(String(100), comment="字典标签")
    dict_value = Column(String(100), comment="字典键值")
    dict_number = Column(Integer, default='0', comment="字典值")
    dict_type = Column(String(100), comment="字典类型")
    dict_value_type = Column(Integer, default='1', comment="字典值类型")
    css_class = Column(String(100), comment="样式属性&其他样式扩展")
    list_class = Column(String(100), comment="表格回显样式")
    is_default = Column(Integer, default='1', comment="是否默认:1=是,0=否")
    status = Column(Integer, default='1', comment="状态:1=正常,2=停用")
    remark = Column(String(500), comment="备注")